package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter@Setter
@ToString
public class Client extends BaseDomain {
    //客户的状态
    public final static Integer POTENTIAL = 0;//定义为潜在客户
    public final static Integer OFFICIAL = 1;//定义为正式客户
    public final static Integer POOL = 2;//定义为资源池客户
    public final static Integer DEVELOPFAILED = 3;//定义为开发失败的客户
    public final static Integer LOSTCLIENT = 4;//定义为流失的客户

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date inputdate;//创建日期

    private Employee inputuser;//创建人

    private Employee chargeuser;//负责人

    private String name;//客户姓名

    private Integer age;//年龄

    private Boolean gender;//性别

    private String job;//工作

    private String salary;//工资

    private String tel;//电话

    private String email;//邮箱

    private String address;//地址

    private String source;//客户来源

    private String qq;

    private String wechat;

    private String identitynum;//身份证号

    private Integer state = POTENTIAL;//客户状态，默认为潜在客户


}